package com.wlw;



import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 程序入口
 */
@SpringBootApplication
//@EnableScheduling
@MapperScan("com.wlw.dao")

public class Application extends SpringBootServletInitializer {
    public static void main(String[] args) {
        try{
            SpringApplication application = new SpringApplication(Application.class);
            application.run(args);
        }catch (Exception e){
            e.printStackTrace();
        }

    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

        return application.sources(Application.class);
    }
}
